package com.etime.shycourse.dao;

import com.etime.shycourse.pojo.Chapter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wb
 * @since 2021-12-21
 */
@Repository
public interface ChapterMapper extends BaseMapper<Chapter> {
    /**
     * 根据课程id courseId 查询到 章节和课时的详细信息
     * 一个课程里面有多个课时
     *
     * @param courseId 课程id
     * @return ListMessage<Chapter>
     */
    List<Chapter> selectCourseLessonAllById(Integer courseId);
}
